<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libslic3r: Slic3r::Model Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Slic3r_192px_transparent.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libslic3r
   </div>
   <div id="projectbrief">Library for generating gcode from 3d models</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_slic3r.html">Slic3r</a></li><li class="navelem"><a class="el" href="class_slic3r_1_1_model.html">Model</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_slic3r_1_1_model-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Slic3r::Model Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_model_8hpp_source.html">Model.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a37b1010079e339892d7dba04d86dceb4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a37b1010079e339892d7dba04d86dceb4">Model</a> ()</td></tr>
<tr class="memdesc:a37b1010079e339892d7dba04d86dceb4"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_slic3r_1_1_model.html">Model</a> constructor.  <a href="#a37b1010079e339892d7dba04d86dceb4">More...</a><br /></td></tr>
<tr class="separator:a37b1010079e339892d7dba04d86dceb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d4e2e2612a2a3f517d859908f29cf08"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a1d4e2e2612a2a3f517d859908f29cf08">Model</a> (const <a class="el" href="class_slic3r_1_1_model.html">Model</a> &amp;other)</td></tr>
<tr class="separator:a1d4e2e2612a2a3f517d859908f29cf08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03e7ac550c8c10f94b1c5385b6d1c984"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_model.html">Model</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a03e7ac550c8c10f94b1c5385b6d1c984">operator=</a> (<a class="el" href="class_slic3r_1_1_model.html">Model</a> other)</td></tr>
<tr class="separator:a03e7ac550c8c10f94b1c5385b6d1c984"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09584074f788b13984a93298815d1990"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a09584074f788b13984a93298815d1990">swap</a> (<a class="el" href="class_slic3r_1_1_model.html">Model</a> &amp;other)</td></tr>
<tr class="separator:a09584074f788b13984a93298815d1990"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bb168e869b6e20613292d0e4be74bc4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a3bb168e869b6e20613292d0e4be74bc4">~Model</a> ()</td></tr>
<tr class="memdesc:a3bb168e869b6e20613292d0e4be74bc4"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_slic3r_1_1_model.html">Model</a> destructor.  <a href="#a3bb168e869b6e20613292d0e4be74bc4">More...</a><br /></td></tr>
<tr class="separator:a3bb168e869b6e20613292d0e4be74bc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61d744bf85843dc27995991846fbeb08"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a61d744bf85843dc27995991846fbeb08">add_object</a> ()</td></tr>
<tr class="separator:a61d744bf85843dc27995991846fbeb08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a438e9c649669afb1a4ced5b6cef3af65"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a438e9c649669afb1a4ced5b6cef3af65">add_object</a> (const <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> &amp;other, bool copy_volumes=true)</td></tr>
<tr class="separator:a438e9c649669afb1a4ced5b6cef3af65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c4abe9160df5a7a690655316c48bbc5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a1c4abe9160df5a7a690655316c48bbc5">delete_object</a> (size_t idx)</td></tr>
<tr class="separator:a1c4abe9160df5a7a690655316c48bbc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7af6d839bd5b3b3c119a179c647adf8b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a7af6d839bd5b3b3c119a179c647adf8b">clear_objects</a> ()</td></tr>
<tr class="memdesc:a7af6d839bd5b3b3c119a179c647adf8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete all ModelObjects found in the current <a class="el" href="class_slic3r_1_1_model.html">Model</a>.  <a href="#a7af6d839bd5b3b3c119a179c647adf8b">More...</a><br /></td></tr>
<tr class="separator:a7af6d839bd5b3b3c119a179c647adf8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1300e5604df3310abc5782cd27a09d78"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a1300e5604df3310abc5782cd27a09d78">add_material</a> (<a class="el" href="namespace_slic3r.html#aed49912ba88b80748263339a6db3c147">t_model_material_id</a> material_id)</td></tr>
<tr class="separator:a1300e5604df3310abc5782cd27a09d78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e8e0ed35f27e2e31ed089d3062db145"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a7e8e0ed35f27e2e31ed089d3062db145">add_material</a> (<a class="el" href="namespace_slic3r.html#aed49912ba88b80748263339a6db3c147">t_model_material_id</a> material_id, const <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> &amp;other)</td></tr>
<tr class="separator:a7e8e0ed35f27e2e31ed089d3062db145"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ab177f451aebeecdd76e9cf034f7d1d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a6ab177f451aebeecdd76e9cf034f7d1d">get_material</a> (<a class="el" href="namespace_slic3r.html#aed49912ba88b80748263339a6db3c147">t_model_material_id</a> material_id)</td></tr>
<tr class="separator:a6ab177f451aebeecdd76e9cf034f7d1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeadf90671fe065bb816796bd52f0e98f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#aeadf90671fe065bb816796bd52f0e98f">delete_material</a> (<a class="el" href="namespace_slic3r.html#aed49912ba88b80748263339a6db3c147">t_model_material_id</a> material_id)</td></tr>
<tr class="separator:aeadf90671fe065bb816796bd52f0e98f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a350aeb2c741edfc617be24b3669421a2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a350aeb2c741edfc617be24b3669421a2">clear_materials</a> ()</td></tr>
<tr class="memdesc:a350aeb2c741edfc617be24b3669421a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete all the <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> objects found in the current <a class="el" href="class_slic3r_1_1_model.html">Model</a>.  <a href="#a350aeb2c741edfc617be24b3669421a2">More...</a><br /></td></tr>
<tr class="separator:a350aeb2c741edfc617be24b3669421a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01dac0659f12cf6ff5792da8716e2796"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a01dac0659f12cf6ff5792da8716e2796">has_objects_with_no_instances</a> () const</td></tr>
<tr class="separator:a01dac0659f12cf6ff5792da8716e2796"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3cd38c5e1498a636abb21d026035522"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#ac3cd38c5e1498a636abb21d026035522">add_default_instances</a> ()</td></tr>
<tr class="separator:ac3cd38c5e1498a636abb21d026035522"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2a48397b35431dd1bcd6e0767b562e3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_bounding_boxf3.html">BoundingBoxf3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#aa2a48397b35431dd1bcd6e0767b562e3">bounding_box</a> () const</td></tr>
<tr class="separator:aa2a48397b35431dd1bcd6e0767b562e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae3dca1100b86eebbdc80aa360469e43"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#aae3dca1100b86eebbdc80aa360469e43">repair</a> ()</td></tr>
<tr class="separator:aae3dca1100b86eebbdc80aa360469e43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a872ecc4fd8a42ce6dd8e8f22383fbdb9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a872ecc4fd8a42ce6dd8e8f22383fbdb9">center_instances_around_point</a> (const <a class="el" href="class_slic3r_1_1_pointf.html">Pointf</a> &amp;point)</td></tr>
<tr class="separator:a872ecc4fd8a42ce6dd8e8f22383fbdb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf082fb0fb3cd166d7bde86e143b708c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#aaf082fb0fb3cd166d7bde86e143b708c">align_instances_to_origin</a> ()</td></tr>
<tr class="separator:aaf082fb0fb3cd166d7bde86e143b708c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a559578af07c5da7c1400e3e245589494"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a559578af07c5da7c1400e3e245589494">translate</a> (<a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a> x, <a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a> y, <a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a> z)</td></tr>
<tr class="separator:a559578af07c5da7c1400e3e245589494"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af61d695a8a6726d697280234f9cbfbeb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_triangle_mesh.html">TriangleMesh</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#af61d695a8a6726d697280234f9cbfbeb">mesh</a> () const</td></tr>
<tr class="separator:af61d695a8a6726d697280234f9cbfbeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cc5d662f5f9b2175638b2d16e2cbd1b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_slic3r_1_1_triangle_mesh.html">TriangleMesh</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a6cc5d662f5f9b2175638b2d16e2cbd1b">raw_mesh</a> () const</td></tr>
<tr class="separator:a6cc5d662f5f9b2175638b2d16e2cbd1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a410cfb24eaf837b8da2e281333b6b629"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a410cfb24eaf837b8da2e281333b6b629">_arrange</a> (const <a class="el" href="namespace_slic3r.html#af371c2c21f879fac0a0c172a992df9a5">Pointfs</a> &amp;sizes, <a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a> dist, const <a class="el" href="class_slic3r_1_1_bounding_boxf.html">BoundingBoxf</a> *bb, <a class="el" href="namespace_slic3r.html#af371c2c21f879fac0a0c172a992df9a5">Pointfs</a> &amp;out) const</td></tr>
<tr class="separator:a410cfb24eaf837b8da2e281333b6b629"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa37a836ad59f56dcc366dda499e394b7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#aa37a836ad59f56dcc366dda499e394b7">arrange_objects</a> (<a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a> dist, const <a class="el" href="class_slic3r_1_1_bounding_boxf.html">BoundingBoxf</a> *bb=NULL)</td></tr>
<tr class="separator:aa37a836ad59f56dcc366dda499e394b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a532d874d68eadb83bebced2c3bfb5f73"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a532d874d68eadb83bebced2c3bfb5f73">duplicate</a> (size_t copies_num, <a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a> dist, const <a class="el" href="class_slic3r_1_1_bounding_boxf.html">BoundingBoxf</a> *bb=NULL)</td></tr>
<tr class="separator:a532d874d68eadb83bebced2c3bfb5f73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c1371781374dce83139b6059e5c600e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a0c1371781374dce83139b6059e5c600e">duplicate_objects</a> (size_t copies_num, <a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a> dist, const <a class="el" href="class_slic3r_1_1_bounding_boxf.html">BoundingBoxf</a> *bb=NULL)</td></tr>
<tr class="separator:a0c1371781374dce83139b6059e5c600e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93d77cc93e62d984316ab48b7ef76b5d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a93d77cc93e62d984316ab48b7ef76b5d">duplicate_objects_grid</a> (size_t x, size_t y, <a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a> dist)</td></tr>
<tr class="separator:a93d77cc93e62d984316ab48b7ef76b5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3da36d40de325c1918b0df1237b04afb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a3da36d40de325c1918b0df1237b04afb">print_info</a> () const</td></tr>
<tr class="memdesc:a3da36d40de325c1918b0df1237b04afb"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function calls the <a class="el" href="class_slic3r_1_1_model.html#a3da36d40de325c1918b0df1237b04afb" title="This function calls the print_info() function of each ModelObject. ">print_info()</a> function of each <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a>.  <a href="#a3da36d40de325c1918b0df1237b04afb">More...</a><br /></td></tr>
<tr class="separator:a3da36d40de325c1918b0df1237b04afb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab87b1d98c2f923e447479dc2c0f488ff"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#ab87b1d98c2f923e447479dc2c0f488ff">looks_like_multipart_object</a> () const</td></tr>
<tr class="separator:ab87b1d98c2f923e447479dc2c0f488ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66ad4e88e4eae0733f5e31eeaba1fcd2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a66ad4e88e4eae0733f5e31eeaba1fcd2">convert_multipart_object</a> ()</td></tr>
<tr class="memdesc:a66ad4e88e4eae0733f5e31eeaba1fcd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Take all of the ModelObjects in the current <a class="el" href="class_slic3r_1_1_model.html">Model</a> and combines them into a single <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a>.  <a href="#a66ad4e88e4eae0733f5e31eeaba1fcd2">More...</a><br /></td></tr>
<tr class="separator:a66ad4e88e4eae0733f5e31eeaba1fcd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ad6809e1b242b5a7a77b47d6105057010"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_slic3r_1_1_model.html">Model</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#ad6809e1b242b5a7a77b47d6105057010">read_from_file</a> (std::string input_file)</td></tr>
<tr class="separator:ad6809e1b242b5a7a77b47d6105057010"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:afa7ef280693b541b1584a412b175c15c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespace_slic3r.html#a66db42329ec538af9e700ecff2b0d653">ModelMaterialMap</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#afa7ef280693b541b1584a412b175c15c">materials</a></td></tr>
<tr class="separator:afa7ef280693b541b1584a412b175c15c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d61f3f9413788a5cde4c7e14f1ea97f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespace_slic3r.html#a50c92387a95ca7fd4fa017aa212dd5e5">ModelObjectPtrs</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a4d61f3f9413788a5cde4c7e14f1ea97f">objects</a></td></tr>
<tr class="separator:a4d61f3f9413788a5cde4c7e14f1ea97f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fb1569b71661c13ee108661e96cac10"><td class="memItemLeft" align="right" valign="top">std::map&lt; std::string, std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_slic3r_1_1_model.html#a8fb1569b71661c13ee108661e96cac10">metadata</a></td></tr>
<tr class="memdesc:a8fb1569b71661c13ee108661e96cac10"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_slic3r_1_1_model.html">Model</a> metadata &lt;name, value&gt;, this is needed for 3MF format read/write.  <a href="#a8fb1569b71661c13ee108661e96cac10">More...</a><br /></td></tr>
<tr class="separator:a8fb1569b71661c13ee108661e96cac10"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_slic3r_1_1_model.html">Model</a> Class representing the print bed content Description of a triangular model with multiple materials, multiple instances with various affine transformations and with multiple modifier meshes. A model groups multiple objects, each object having possibly multiple instances, all objects may share multiple materials. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a37b1010079e339892d7dba04d86dceb4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a37b1010079e339892d7dba04d86dceb4">&#9670;&nbsp;</a></span>Model() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Slic3r::Model::Model </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="class_slic3r_1_1_model.html">Model</a> constructor. </p>

</div>
</div>
<a id="a1d4e2e2612a2a3f517d859908f29cf08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d4e2e2612a2a3f517d859908f29cf08">&#9670;&nbsp;</a></span>Model() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Slic3r::Model::Model </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_slic3r_1_1_model.html">Model</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p><a class="el" href="class_slic3r_1_1_model.html">Model</a> constructor. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td><a class="el" href="class_slic3r_1_1_model.html">Model</a> the model to be copied </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3bb168e869b6e20613292d0e4be74bc4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bb168e869b6e20613292d0e4be74bc4">&#9670;&nbsp;</a></span>~Model()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Slic3r::Model::~Model </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="class_slic3r_1_1_model.html">Model</a> destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a410cfb24eaf837b8da2e281333b6b629"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a410cfb24eaf837b8da2e281333b6b629">&#9670;&nbsp;</a></span>_arrange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Slic3r::Model::_arrange </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespace_slic3r.html#af371c2c21f879fac0a0c172a992df9a5">Pointfs</a> &amp;&#160;</td>
          <td class="paramname"><em>sizes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a>&#160;</td>
          <td class="paramname"><em>dist</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_slic3r_1_1_bounding_boxf.html">BoundingBoxf</a> *&#160;</td>
          <td class="paramname"><em>bb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#af371c2c21f879fac0a0c172a992df9a5">Pointfs</a> &amp;&#160;</td>
          <td class="paramname"><em>out</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Arrange ModelInstances. ModelInstances of the same <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> do not preserve their relative positions. It uses the given <a class="el" href="class_slic3r_1_1_bounding_boxf.html">BoundingBoxf</a> as a hint, but falls back to free arrangement if it's not possible to fit all the parts in it. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sizes</td><td>Pointfs&amp; number of parts </td></tr>
    <tr><td class="paramname">dist</td><td>coordf_t distance between cells </td></tr>
    <tr><td class="paramname">bb</td><td>BoundingBoxf* (optional) pointer to the bounding box of the area to fill </td></tr>
    <tr><td class="paramname">out</td><td>Pointfs&amp; vector of the output positions </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>bool whether the function finished arranging objects or it is impossible to arrange </dd></dl>

</div>
</div>
<a id="ac3cd38c5e1498a636abb21d026035522"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3cd38c5e1498a636abb21d026035522">&#9670;&nbsp;</a></span>add_default_instances()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Slic3r::Model::add_default_instances </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Add a new <a class="el" href="class_slic3r_1_1_model_instance.html">ModelInstance</a> to each <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> having no <a class="el" href="class_slic3r_1_1_model_instance.html">ModelInstance</a> objects </p><dl class="section return"><dt>Returns</dt><dd>bool </dd></dl>

</div>
</div>
<a id="a1300e5604df3310abc5782cd27a09d78"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1300e5604df3310abc5782cd27a09d78">&#9670;&nbsp;</a></span>add_material() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> * Slic3r::Model::add_material </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#aed49912ba88b80748263339a6db3c147">t_model_material_id</a>&#160;</td>
          <td class="paramname"><em>material_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Add a new <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> to the model. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">material_id</td><td>t_model_material_id the id of the new <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> to be added </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>ModelMaterial* a pointer to the new <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> </dd></dl>

</div>
</div>
<a id="a7e8e0ed35f27e2e31ed089d3062db145"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e8e0ed35f27e2e31ed089d3062db145">&#9670;&nbsp;</a></span>add_material() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> * Slic3r::Model::add_material </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#aed49912ba88b80748263339a6db3c147">t_model_material_id</a>&#160;</td>
          <td class="paramname"><em>material_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Add a new <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> to the current <a class="el" href="class_slic3r_1_1_model.html">Model</a>. This function copies another <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a>, It also delete the current <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> carrying the same material id in the map. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">material_id</td><td>t_model_material_id the id of the new <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> to be added </td></tr>
    <tr><td class="paramname">other</td><td><a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> the model material to be copied </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>ModelMaterial* a pointer to the new <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> </dd></dl>

</div>
</div>
<a id="a61d744bf85843dc27995991846fbeb08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61d744bf85843dc27995991846fbeb08">&#9670;&nbsp;</a></span>add_object() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> * Slic3r::Model::add_object </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create a new object and add it to the current <a class="el" href="class_slic3r_1_1_model.html">Model</a>. </p><dl class="section return"><dt>Returns</dt><dd>ModelObject* a pointer to the new <a class="el" href="class_slic3r_1_1_model.html">Model</a> </dd></dl>

</div>
</div>
<a id="a438e9c649669afb1a4ced5b6cef3af65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a438e9c649669afb1a4ced5b6cef3af65">&#9670;&nbsp;</a></span>add_object() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> * Slic3r::Model::add_object </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>copy_volumes</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create a new object and add it to the current <a class="el" href="class_slic3r_1_1_model.html">Model</a>. This function copies another model object </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td><a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> the <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> to be copied </td></tr>
    <tr><td class="paramname">copy_volumes</td><td>if you also want to copy volumes of the other object. By default = true </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>ModelObject* a pointer to the new <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> </dd></dl>

</div>
</div>
<a id="aaf082fb0fb3cd166d7bde86e143b708c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf082fb0fb3cd166d7bde86e143b708c">&#9670;&nbsp;</a></span>align_instances_to_origin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::Model::align_instances_to_origin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aa37a836ad59f56dcc366dda499e394b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa37a836ad59f56dcc366dda499e394b7">&#9670;&nbsp;</a></span>arrange_objects()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Slic3r::Model::arrange_objects </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a>&#160;</td>
          <td class="paramname"><em>dist</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_slic3r_1_1_bounding_boxf.html">BoundingBoxf</a> *&#160;</td>
          <td class="paramname"><em>bb</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Arrange ModelObjects preserving their <a class="el" href="class_slic3r_1_1_model_instance.html">ModelInstance</a> count but altering their <a class="el" href="class_slic3r_1_1_model_instance.html">ModelInstance</a> positions. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dist</td><td>coordf_t distance between cells </td></tr>
    <tr><td class="paramname">bb</td><td>BoundingBoxf* (optional) pointer to the bounding box of the area to fill </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>bool whether the function finished arranging objects or it is impossible to arrange </dd></dl>

</div>
</div>
<a id="aa2a48397b35431dd1bcd6e0767b562e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2a48397b35431dd1bcd6e0767b562e3">&#9670;&nbsp;</a></span>bounding_box()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_bounding_boxf3.html">BoundingBoxf3</a> Slic3r::Model::bounding_box </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the bounding box of the transformed instances. </p><dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_slic3r_1_1_bounding_boxf3.html">BoundingBoxf3</a> a bounding box object. </dd></dl>

</div>
</div>
<a id="a872ecc4fd8a42ce6dd8e8f22383fbdb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a872ecc4fd8a42ce6dd8e8f22383fbdb9">&#9670;&nbsp;</a></span>center_instances_around_point()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::Model::center_instances_around_point </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_slic3r_1_1_pointf.html">Pointf</a> &amp;&#160;</td>
          <td class="paramname"><em>point</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Center the total bounding box of the instances around a point. This transformation works in the XY plane only and no transformation in Z is performed. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">point</td><td>pointf object to center the model instances of model objects around </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a350aeb2c741edfc617be24b3669421a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a350aeb2c741edfc617be24b3669421a2">&#9670;&nbsp;</a></span>clear_materials()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::Model::clear_materials </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Delete all the <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> objects found in the current <a class="el" href="class_slic3r_1_1_model.html">Model</a>. </p>

</div>
</div>
<a id="a7af6d839bd5b3b3c119a179c647adf8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7af6d839bd5b3b3c119a179c647adf8b">&#9670;&nbsp;</a></span>clear_objects()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::Model::clear_objects </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Delete all ModelObjects found in the current <a class="el" href="class_slic3r_1_1_model.html">Model</a>. </p>

</div>
</div>
<a id="a66ad4e88e4eae0733f5e31eeaba1fcd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66ad4e88e4eae0733f5e31eeaba1fcd2">&#9670;&nbsp;</a></span>convert_multipart_object()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::Model::convert_multipart_object </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Take all of the ModelObjects in the current <a class="el" href="class_slic3r_1_1_model.html">Model</a> and combines them into a single <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a>. </p>

</div>
</div>
<a id="aeadf90671fe065bb816796bd52f0e98f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeadf90671fe065bb816796bd52f0e98f">&#9670;&nbsp;</a></span>delete_material()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::Model::delete_material </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#aed49912ba88b80748263339a6db3c147">t_model_material_id</a>&#160;</td>
          <td class="paramname"><em>material_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Delete a <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> carrying a certain material id if found. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">material_id</td><td>t_model_material_id the id of the <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> to be deleted </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1c4abe9160df5a7a690655316c48bbc5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c4abe9160df5a7a690655316c48bbc5">&#9670;&nbsp;</a></span>delete_object()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::Model::delete_object </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>idx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Delete a <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> from the current <a class="el" href="class_slic3r_1_1_model.html">Model</a>. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">idx</td><td>size_t the index of the desired <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a532d874d68eadb83bebced2c3bfb5f73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a532d874d68eadb83bebced2c3bfb5f73">&#9670;&nbsp;</a></span>duplicate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::Model::duplicate </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>copies_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a>&#160;</td>
          <td class="paramname"><em>dist</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_slic3r_1_1_bounding_boxf.html">BoundingBoxf</a> *&#160;</td>
          <td class="paramname"><em>bb</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Duplicate the ModelInstances of each <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> as a whole preserving their relative positions. This function croaks if the duplicated objects do not fit the print bed. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">copies_num</td><td>size_t number of copies </td></tr>
    <tr><td class="paramname">dist</td><td>coordf_t distance between cells </td></tr>
    <tr><td class="paramname">bb</td><td>BoundingBoxf* (optional) pointer to the bounding box of the area to fill </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0c1371781374dce83139b6059e5c600e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c1371781374dce83139b6059e5c600e">&#9670;&nbsp;</a></span>duplicate_objects()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::Model::duplicate_objects </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>copies_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a>&#160;</td>
          <td class="paramname"><em>dist</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_slic3r_1_1_bounding_boxf.html">BoundingBoxf</a> *&#160;</td>
          <td class="paramname"><em>bb</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Duplicate each entire ModelInstances of the each <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> as a whole. This function will append more instances to each object and then calls <a class="el" href="class_slic3r_1_1_model.html#aa37a836ad59f56dcc366dda499e394b7">arrange_objects()</a> function to automatically rearrange everything. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">copies_num</td><td>size_t number of copies </td></tr>
    <tr><td class="paramname">dist</td><td>coordf_t distance between cells </td></tr>
    <tr><td class="paramname">bb</td><td>BoundingBoxf* (optional) pointer to the bounding box of the area to fill </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a93d77cc93e62d984316ab48b7ef76b5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93d77cc93e62d984316ab48b7ef76b5d">&#9670;&nbsp;</a></span>duplicate_objects_grid()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::Model::duplicate_objects_grid </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a>&#160;</td>
          <td class="paramname"><em>dist</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Duplicate a single <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> and arranges them on a grid. Grid duplication is not supported with multiple objects. It throws an exception if there is more than one <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a>. It also throws an exception if there are no ModelObjects in the current <a class="el" href="class_slic3r_1_1_model.html">Model</a>. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>size_t number of duplicates in x direction </td></tr>
    <tr><td class="paramname">y</td><td>size_t offset number of duplicates in y direction </td></tr>
    <tr><td class="paramname">dist</td><td>coordf_t distance supposed to be between the duplicated ModelObjects </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a6ab177f451aebeecdd76e9cf034f7d1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ab177f451aebeecdd76e9cf034f7d1d">&#9670;&nbsp;</a></span>get_material()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> * Slic3r::Model::get_material </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#aed49912ba88b80748263339a6db3c147">t_model_material_id</a>&#160;</td>
          <td class="paramname"><em>material_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Get the <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> object instance having a certain material id. Returns null if the <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> object instance is not found. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">material_id</td><td>t_model_material_id the id of the needed <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> object instance </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>ModelMaterial* a pointer to the <a class="el" href="class_slic3r_1_1_model_material.html">ModelMaterial</a> object instance or null if not found </dd></dl>

</div>
</div>
<a id="a01dac0659f12cf6ff5792da8716e2796"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01dac0659f12cf6ff5792da8716e2796">&#9670;&nbsp;</a></span>has_objects_with_no_instances()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Slic3r::Model::has_objects_with_no_instances </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check if any <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> has no ModelInstances. </p><dl class="section return"><dt>Returns</dt><dd>bool true means there exists at least one <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> with no <a class="el" href="class_slic3r_1_1_model_instance.html">ModelInstance</a> objects </dd></dl>

</div>
</div>
<a id="ab87b1d98c2f923e447479dc2c0f488ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab87b1d98c2f923e447479dc2c0f488ff">&#9670;&nbsp;</a></span>looks_like_multipart_object()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Slic3r::Model::looks_like_multipart_object </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check to see if the current <a class="el" href="class_slic3r_1_1_model.html">Model</a> has characteristics of having multiple parts (usually multiple volumes, etc). </p><dl class="section return"><dt>Returns</dt><dd>bool </dd></dl>

</div>
</div>
<a id="af61d695a8a6726d697280234f9cbfbeb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af61d695a8a6726d697280234f9cbfbeb">&#9670;&nbsp;</a></span>mesh()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_triangle_mesh.html">TriangleMesh</a> Slic3r::Model::mesh </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Flatten all ModelInstances to a single mesh after performing instance transformations (if the object was rotated or translated). </p><dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_slic3r_1_1_triangle_mesh.html">TriangleMesh</a> a single <a class="el" href="class_slic3r_1_1_triangle_mesh.html">TriangleMesh</a> object </dd></dl>

</div>
</div>
<a id="a03e7ac550c8c10f94b1c5385b6d1c984"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03e7ac550c8c10f94b1c5385b6d1c984">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_model.html">Model</a> &amp; Slic3r::Model::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_slic3r_1_1_model.html">Model</a>&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>= Operator overloading. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td><a class="el" href="class_slic3r_1_1_model.html">Model</a> the model to be copied </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_slic3r_1_1_model.html">Model</a>&amp; the current <a class="el" href="class_slic3r_1_1_model.html">Model</a> to enable operator cascading </dd></dl>

</div>
</div>
<a id="a3da36d40de325c1918b0df1237b04afb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3da36d40de325c1918b0df1237b04afb">&#9670;&nbsp;</a></span>print_info()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::Model::print_info </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function calls the <a class="el" href="class_slic3r_1_1_model.html#a3da36d40de325c1918b0df1237b04afb" title="This function calls the print_info() function of each ModelObject. ">print_info()</a> function of each <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a>. </p>

</div>
</div>
<a id="a6cc5d662f5f9b2175638b2d16e2cbd1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cc5d662f5f9b2175638b2d16e2cbd1b">&#9670;&nbsp;</a></span>raw_mesh()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_triangle_mesh.html">TriangleMesh</a> Slic3r::Model::raw_mesh </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Flatten all ModelVolumes to a single mesh without any extra processing (i.e. without applying any instance duplication and/or transformation). </p><dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_slic3r_1_1_triangle_mesh.html">TriangleMesh</a> a single <a class="el" href="class_slic3r_1_1_triangle_mesh.html">TriangleMesh</a> object </dd></dl>

</div>
</div>
<a id="ad6809e1b242b5a7a77b47d6105057010"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6809e1b242b5a7a77b47d6105057010">&#9670;&nbsp;</a></span>read_from_file()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_slic3r_1_1_model.html">Model</a> Slic3r::Model::read_from_file </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>input_file</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Read a model from file. This function supports the following formats (STL, OBJ, AMF), It auto-detects the file format from the file name suffix. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input_file</td><td>std::string the file path expressed in UTF-8 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_slic3r_1_1_model.html">Model</a> the read <a class="el" href="class_slic3r_1_1_model.html">Model</a> </dd></dl>

</div>
</div>
<a id="aae3dca1100b86eebbdc80aa360469e43"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae3dca1100b86eebbdc80aa360469e43">&#9670;&nbsp;</a></span>repair()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::Model::repair </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Repair the ModelObjects of the current <a class="el" href="class_slic3r_1_1_model.html">Model</a>. This function calls repair function on each <a class="el" href="class_slic3r_1_1_triangle_mesh.html">TriangleMesh</a> of each model object volume </p>

</div>
</div>
<a id="a09584074f788b13984a93298815d1990"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09584074f788b13984a93298815d1990">&#9670;&nbsp;</a></span>swap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::Model::swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_slic3r_1_1_model.html">Model</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Swap objects and materials with another model. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td><a class="el" href="class_slic3r_1_1_model.html">Model</a> the model to be swapped with </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a559578af07c5da7c1400e3e245589494"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a559578af07c5da7c1400e3e245589494">&#9670;&nbsp;</a></span>translate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Slic3r::Model::translate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a>&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a>&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespace_slic3r.html#a2ac5c755948c74f5f5f975acd5057fe9">coordf_t</a>&#160;</td>
          <td class="paramname"><em>z</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Translate each <a class="el" href="class_slic3r_1_1_model_object.html">ModelObject</a> with x, y, z units. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>coordf_t units in the x direction </td></tr>
    <tr><td class="paramname">y</td><td>coordf_t units in the y direction </td></tr>
    <tr><td class="paramname">z</td><td>coordf_t units in the z direction </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="afa7ef280693b541b1584a412b175c15c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa7ef280693b541b1584a412b175c15c">&#9670;&nbsp;</a></span>materials</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespace_slic3r.html#a66db42329ec538af9e700ecff2b0d653">ModelMaterialMap</a> Slic3r::Model::materials</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Materials are owned by a model and referenced by objects through t_model_material_id. Single material may be shared by multiple models. </p>

</div>
</div>
<a id="a8fb1569b71661c13ee108661e96cac10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8fb1569b71661c13ee108661e96cac10">&#9670;&nbsp;</a></span>metadata</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::map&lt;std::string, std::string&gt; Slic3r::Model::metadata</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="class_slic3r_1_1_model.html">Model</a> metadata &lt;name, value&gt;, this is needed for 3MF format read/write. </p>

</div>
</div>
<a id="a4d61f3f9413788a5cde4c7e14f1ea97f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d61f3f9413788a5cde4c7e14f1ea97f">&#9670;&nbsp;</a></span>objects</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespace_slic3r.html#a50c92387a95ca7fd4fa017aa212dd5e5">ModelObjectPtrs</a> Slic3r::Model::objects</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Objects are owned by a model. Each object may have multiple instances , each instance having its own transformation (shift, scale, rotation). </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/libslic3r/<a class="el" href="_model_8hpp_source.html">Model.hpp</a></li>
<li>src/libslic3r/<a class="el" href="_model_8cpp.html">Model.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
